import yaml

from pytest笔记1.utils.get_path import get_datasFile_path


def get_testdata(filename):
    filePath = get_datasFile_path(filename)
    # 从yaml文件中读取数据
    with open(filePath, 'r', encoding='utf-8') as f:
        return yaml.safe_load(f)


if __name__ == '__main__':
    print(get_testdata('datas.yaml'))





